package com.tengol.demo.design.pattern.creational.abstractfactory.factory;

import com.tengol.demo.design.pattern.creational.abstractfactory.domain.Article;
import com.tengol.demo.design.pattern.creational.abstractfactory.domain.PythonArticle;
import com.tengol.demo.design.pattern.creational.abstractfactory.domain.PythonVideo;
import com.tengol.demo.design.pattern.creational.abstractfactory.domain.Video;

/**
 * PythonCourseFactory
 *
 * @author dongrui
 * @date 2019/02/28
 */
public class PythonCourseFactory extends CourseFactory {
    @Override
    public Video getVideo() {
        return new PythonVideo();
    }

    @Override
    public Article getArticle() {
        return new PythonArticle();
    }
}
